<?php	
	$xtpl = new XTemplate('Html/main_menu.html');	
	$sql="select Title from tbl_article where type = 'MN'";
	$query=mysql_query($sql);
	
	if(mysql_num_rows($query) == 0)
	{
		echo "Chua co du lieu";
	}
	else
	{
		while($row=mysql_fetch_array($query))
		{
			$xtpl->assign('Menu', $row);
			$xtpl->parse('MainMenu');	   
		}	
	} 
		$xtpl->out('MainMenu');	
?>